@import '../../assets/css/reset';

$box-shadow-color: rgba(172, 172, 172, 0.35);
%clearfix {
    *zoom: 1;
    &:before, &:after {
      content: " ";
      display: table;
    }
    &:after {
      clear: both;
    }
  } ;
  %commheaderList{
    ul{
        @extend %clearfix;     
    }
    li{
        float: left; 
        a{
            font-size:18px;
            font-family:PingFang SC;
            font-weight:400;
            color:rgba(77,85,93,1);
            line-height:100px;
        }
    
       
    }
  }
  .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
header{
    font-size: 14px;
    width:100%;
    height:100px;
    background:rgba(255,255,255,1);
    box-shadow:0px 1px 3px 0px $box-shadow-color;
    a{ text-decoration:none} 
}
.headerLeft{
    float: left;
    @extend %clearfix;
    .logo{
        display: block;
        margin-left: 20px;
        margin-top: 22px;
        img{
            width:154px;
            height:57px;
        }
    }
    .logo,ul{
        float: left;
    }
    ul{
        @extend %clearfix;     
    }
    @extend %commheaderList;
    li{
        padding-left: 40px;
        &:last-of-type{
          position: relative;
          svg{
              position:absolute;
              right: 20px;
              top: 45px;
          }
        }
    }
    input{
        width:300px;
        height:30px;
        background:rgba(244,244,244,1);
        border-radius:15px;
        margin-top: 35px;
    }
}
.headerRight{
    float: right;
    li a{ font-size: 14px;}
    position: relative;
   
   @extend %commheaderList;
   li{
    padding-right: 40px;
    }
    svg{
        font-size: 22px;
    }

    img{
        position: relative;
        top: 11px;
    }
}


.menu{
    width: 1100px;
    margin: 0 auto;
    margin-top: 20px;
    font-size:14px;
    @extend %clearfix;    
    
}
.menuLift,.menuRight{
    position: relative;
    float: left;
}
.menuLift{
    width:185px;
    height:364px;
    padding: 18px 0;
    background:rgba(43,51,59,1);
    border-radius:10px 0px 0px 10px;
    li{
        @extend %clearfix;  
        width: 91px;
        margin: 0 auto; 
        padding: 19px 0;  
        a{
            float: left;
        }
        svg{
            float: right;
        }
    }
    a{
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,255,255,1);
    text-decoration:none
    }
    svg{
        color:rgba(255,255,255,1);
    }
    
}

.carte{
    width: 1100px;
    margin: 60px auto 26px auto;
    font-size: 14px;
    @extend %clearfix;
    h3,.fb{
        float: left;
    }
    h3{
        
    font-size:24px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(18,18,18,1);

    }
    .fb{    
    display: block;  
    font-size:14px;
    font-family:PingFang SC;
    font-weight:400;
    color:rgba(77,85,93,1);
    line-height:36px ;
    margin-left: 24px;
    }
    .more{
        float: right;
        a{
            text-decoration: none;
            color:rgba(29,29,29,1);
        }
    }   
}

.listShow{
    width: 1117px;
    margin: 0 auto; 
    font-size: 17px;
    @extend %clearfix;
    li{
        float: left;
        margin:0  8.5px;
        &:nth-of-type(1) {
          background: url('../../assets/images/sencond1.png') no-repeat center center ;
        }
        &:nth-of-type(2) {
            background: url('../../assets/images/sencond2.png') no-repeat center center ;
        }
        &:nth-of-type(3) {
            background: url('../../assets/images/sencond3.png') no-repeat center center ;
        }
        &:nth-of-type(4) {
            background: url('../../assets/images/sencond4.png') no-repeat center center ;
        }
    }
    a{
        display: block;
        text-decoration: none;
        font-family:PingFang SC;
        color:rgba(85,85,85,1);

        width:261px;
        height:98px;
        box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.1);
        border-radius:10px;
    }
    h5{
        padding-left: 15px;
        padding-top: 25px;
    }
    p{
        padding-left: 15px;
        padding-top: 13px;
    }
}

.course{
    width: 1134px;
    margin: 0 auto; 
    @extend %clearfix;
    li{
        float: left;
        margin: 0 16.67px;
    }
    a{
        display: block;
        text-decoration: none; 
        font-size: 14px;

        width:250px;
        
    }
    .photo{
        position: relative;
        width:250px;
        height:140px;
        overflow: hidden;
        background:linear-gradient(-60deg,rgba(56,103,253,1),rgba(44,76,255,1));
        border-radius:10px;
       
        img{
            width:250px;
            height:140px;
            transition: all 0.6s;
            &:hover{
                transform: scale(1.2); /* 放大1.2倍 */
           }
        }
      
    }

    .new{

       position: absolute;
       top: 0;
       left: 0;
       width: 45px;
       height: 30px;
       line-height: 30px;
       text-align: center;
       color: #FFFFFF;
       background: url('../../assets/images/iconCourse.png') no-repeat center center;
    }
    .type{
        position: absolute;
        bottom: 13px;
        left: 17px;
        width:40px;
        height:25px;
        line-height: 25px;
        text-align: center;
        color: #FFFFFF;
        background:rgba(0,0,0,1);
        opacity:0.5;
        border-radius:5px;
    }
    h4{
        overflow: hidden;/*超出部分隐藏*/
        text-overflow:ellipsis;/* 超出部分显示省略号 */
        white-space: nowrap;/*规定段落中的文本不进行换行 */
        width: 250px;/*需要配合宽度来使用*/
        height:18px;
        font-size:16px;
        font-family:PingFang SC;
        font-weight:bold;
        color:rgba(18,18,18,1);
        margin: 15px 0 14px 0;
    }

    p{
        width:247px;
        height:35px;
        font-size:14px;
        font-family:PingFang SC;
        font-weight:400;
        color:rgba(77,85,93,1);
        line-height:20px;
        height: 35PX;
        display: -webkit-box;
    　　-webkit-box-orient: vertical;
    　　-webkit-line-clamp: 2;
    　　overflow: hidden;
    }
    .other{
        margin-top: 27px;
        font-size:14px;
        font-family:PingFang SC;
        font-weight:400;
        color:rgba(113,113,113,1);
    }
}

footer{
    width: 100%;
    margin-top: 127px;
    height:141px;
    background:rgba(248,250,252,1);
}
.footer{
    width: 1100px;
    margin: 0 auto;  
    font-size: 14px;
    a{
        text-decoration: none;
    }
    @extend %clearfix;
    .left{
        float: left;
    }
    .right{
        float: right;
        a{
            display: inline-block;
            width:150px;
            height:35px;
            background:rgba(200,206,212,1);
            box-shadow:0px 1px 3px 0px rgba(96, 96, 96, 0.35);
            border-radius:18px;
            margin-left: 36px;
            text-align: center;
            line-height: 35px;
            color: #FFFFFF;
            margin-top: 65px;
        }
    }
    ul{
        @extend %clearfix;  
        margin-top: 44px;
       
    }
    li{
        float: left;
        a{
            display: block;
            font-size:14px;
            font-family:PingFang SC;
            font-weight:500;
            color:rgba(159,167,171,1);
        }
        margin-right: 35px;
        margin-bottom: 26px;
    } 
    p{
        font-size:14px;
        font-family:PingFang SC;
        font-weight:500;
        color:rgba(159,167,171,1);
    }
}


.suspension{
    width: 60px;
    height: 144px;
    font-size: 23px;
    position: absolute;
    right: -90px;
   
    a{
        text-decoration: none;
        z-index: 10;
        display: block;
        width:60px;
        height:48px;
        border:1px solid rgba(45,210,193,1);
        text-align: center;
        color: rgba(45,210,193,1);
        line-height: 48px;
        &:hover{
          background: rgba(45,210,193,1);
          color: #FFFFFF;
          transition: all .3s ease-in;
       
        }
    }
    li{
        &:nth-of-type(3){
            svg{
               width: 20px; 
               height: 11px;
            }
            a{
                line-height: 24px;
            }
            p{
                font-size: 12px;
            }
        }
        &:nth-of-type(2){
            a{
                border-top: none;
                border-bottom: none;
            }        
        }
        &:nth-of-type(1){
           
                position: relative;
            
            span{
                position: absolute;
                width:20px;
                height:20px;
                background:rgba(255,104,0,1);
                border-radius:10px;

                font-size:12px;
                font-family:PingFang SC;
                font-weight:400;
                color:rgba(255,255,255,1);
                text-align: center;
                line-height: 20px;
                left: 47px;
                bottom: 35px;
            }
        }
        
    }
    .active{
        a{
            background: rgba(45,210,193,1);
            color: #FFFFFF;
         
        }
    }
}

#suspension{
    position:fixed;
    width: 1100px;
    height: 144px;
    top: 469px;
    left:50% ;
    margin-left: -550px;
    z-index: -1;
}
.secondMenu{
    width:659px;
    height:400px;
    box-shadow:0px 1px 5px 0px rgba(193, 193, 193, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFFFF;
    a{
        color:rgba(77,85,93,1);
        text-decoration: none;
        display: inline-block;
        margin:0 20px;
        line-height: 36px;
        &:hover{
        transition: all .3s ease-in;  
        color:rgba(45,210,193,1);;
        }
    }
    section{
        margin-left: 26px;
        margin-right: 35px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(234,234,234,1);
    }
    h3{
        padding-left: 20px;
        font-size:16px;
        font-family:PingFang SC;
        font-weight:bold;
        color:rgba(22,22,22,1);
        margin: 27px 0;
    }
    ul{
        @extend %clearfix;    
    }

    li{
        float: left;
        
    }
    .active{
        a{
            color:rgba(45,210,193,1);
        }
    }
}

/**已登录样式*/
.loggedIn{
   li{
    position: relative;
   } 
   .active:after{
    content: "";
    position: absolute;
    top: 38px;
    left: 15px;
    width: 6px;
    height: 6px;
    background: #ff6800;
    border-radius: 50%;
    }
}

/**头像展开菜单*/
.ExtendedMenus{
    width:131px;
    height:256px;
    position:absolute;
    right: 3px;
    background:rgba(255,255,255,1);
    box-shadow:0px 1px 5px 0px rgba(193, 193, 193, 0.35); 
    a{
        color:rgba(77,85,93,1);
    }

    dt,dd{
        padding: 16.5px 0;
        text-align: center;
    }
    dl{
       padding-top: 8.5px;
    }
    dd{
        border-top: 1px  solid rgba(241,241,241,1);
        padding-top:25px ;
    }
}